A Practical Guide to Linux Commands, Editors, and Shell Programming by Mark G. Sobell

A Practical Guide to Linux Commands, Editors, and Shell Programming by Mark G. Sobell

Author:Mark G. Sobell
Language: eng
Format: epub, pdf
Publisher: Pearson Education Limited (US titles)
Published: 2012-04-12T04:00:00+00:00


$ make test

PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl

1..1

# Running under perl version 5.100000 for linux

# Current time local: Fri Sep 3 18:20:41 2010

# Current time GMT: Sat Sep 4 01:20:41 2010

# Using Test.pm version 1.25

ok 1

ok 2

ok 3

Finally, running with root privileges, install the module:

Click here to view code image

# make install

Installing /usr/local/share/perl/5.10.0/Timestamp/Simple.pm

Installing /usr/local/man/man3/Timestamp::Simple.3pm

Writing /usr/local/lib/perl/5.10.0/auto/Timestamp/Simple/.packlist

Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod

Once you have installed a module, you can use perldoc to display the documentation that tells you how to use the module. See page 519 for an example.

Some modules contain SYNOPSIS sections. If the module you installed includes such a section, you can test the module by putting the code from the SYNOPSIS section in a file and running it as a Perl program:

Click here to view code image

$ cat times.pl

use Timestamp::Simple qw(stamp);

print stamp, "\n";



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.